package com.happts.Service;

import com.happts.Dao.USERDAO;
import com.happts.Entity.USER;

import java.util.List;

public class USERService {
    USERDAO DAO = new USERDAO();

    public boolean add(USER user){
       return DAO.insert(user);
    }

    public boolean delete(USER user){
        return DAO.delete(user);
    }

    public List<USER> findAll(){
        return DAO.findAll();
    }

    public List<USER> find(String username){
        return DAO.findOne(username);
    }
}
